package com.jhgsys.internal.sypq.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jhgsys.internal.common.entity.BaseEntity;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName ModelShipProcess
 * @Description 船模加工流程表
 * @Author Lucas
 * @Date 2024/11/16
 **/
@Data
@TableName("sypq_model_ship_process")
public class ModelShipProcess extends BaseEntity implements Serializable {

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 船模id
     */
    @TableField(value = "ship_id")
    private String shipId;

    /**
     * 船模code
     */
    @TableField(value = "ship_code")
    private String shipCode;

    /**
     * 加工项目
     */
    @TableField(value = "item")
    private String item;

    /**
     * 操作人
     */
    @TableField(value = "operator")
    private String operator;

    /**
     * 操作人姓名
     */
    @TableField(value = "operator_name")
    private String operatorName;

    /**
     * 加工日期
     */
    @TableField(value = "start_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date startDate;

    /**
     * 完工日期
     */
    @TableField(value = "end_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date endDate;

    /**
     * 检验结果
     */
    @TableField(value = "result")
    private String result;

    /**
     * 所属阶段,数据字典MODEL_SHIP_PROCESS_STATUS,1:未开始,2:未上传图纸,3:待下料,4:待粗切,5:待修模,6:待油漆,7:待完工,8:已完工
     */
    @TableField(value = "process_status")
    private Integer processStatus;

}
